package com.nuoniu.sibanyun.entity.erp.in;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 存货分类
 * </p>
 *
 * @author 小啊刚
 * @since 2021-06-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("scb_inventory_class")
@ApiModel(value="InInventoryCategory对象", description="存货分类")
public class InInventoryCategory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父级id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "所有上级id")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "上级名称")
    @TableField("tree_names")
    private String treeNames;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "分类编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "分类名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "级次")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "是否末级1是 0否")
    @TableField("is_end_node")
    private Boolean isEndNode;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id ")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "使用编码级次")
    @TableField("grade_rule_level")
    private Integer gradeRuleLevel;

    @ApiModelProperty(value = "使用的编码规则")
    @TableField("grade_rule_str")
    private String gradeRuleStr;


}
